﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using UniMana.Utils.Controls;

namespace UniMana.Win.Training
{
    public partial class RptStudent : DevExpress.XtraReports.UI.XtraReport
    {
        public RptStudent(bds _bdsSource)
        {
            InitializeComponent();

            this.DataSource = _bdsSource;
            //xrtIndex.DataBindings.Add("Text", this.DataSource, "GhiChu");
            xrtID.DataBindings.Add("Text", this.DataSource, "ID");
            xrtLastName.DataBindings.Add("Text", this.DataSource, "LastName");
            xrtSureName.DataBindings.Add("Text", this.DataSource, "SureName");
            xrtBirthday.DataBindings.Add("Text", this.DataSource, "Birthday","{0:dd/MM/yyyy}");
            xrtGender.DataBindings.Add("Text", this.DataSource, "Gender");
            xrtPlaceOfBirth.DataBindings.Add("Text", this.DataSource, "PlaceOfBirth");
            xrtNote.DataBindings.Add("Text", this.DataSource, "Note");
        }



    }
}
